package com.sjtu.rental.entity;

import java.util.Date;

/**
 * RentRecord entity. @author MyEclipse Persistence Tools
 */

public class RentRecord implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -8102878161896555538L;
	private Long id;
	private Long houseId;
	private Long userId;
	private Date checkIn;
	private Long appointmentId;
	private Integer marks;
	private Date checkOut;
	private String remark;
	private Double price;
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	private House house;
	private UserInfo user;

	// Constructors

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}

	/** default constructor */
	public RentRecord() {
	}

	/** minimal constructor */
	public RentRecord(Long houseId, Long userId) {
		this.houseId = houseId;
		this.userId = userId;
	}

	/** full constructor */
	public RentRecord(Long houseId, Long userId, Date checkIn,
			Long appointmentId, Integer marks, Date checkOut) {
		this.houseId = houseId;
		this.userId = userId;
		this.checkIn = checkIn;
		this.appointmentId = appointmentId;
		this.marks = marks;
		this.checkOut = checkOut;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHouseId() {
		return this.houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Date getCheckIn() {
		return this.checkIn;
	}

	public void setCheckIn(Date checkIn) {
		this.checkIn = checkIn;
	}

	public Long getAppointmentId() {
		return this.appointmentId;
	}

	public void setAppointmentId(Long appointmentId) {
		this.appointmentId = appointmentId;
	}

	public Integer getMarks() {
		return this.marks;
	}

	public void setMarks(Integer marks) {
		this.marks = marks;
	}

	public Date getCheckOut() {
		return this.checkOut;
	}

	public void setCheckOut(Date checkOut) {
		this.checkOut = checkOut;
	}

}